import { createApp } from 'vue'
import App from './App.vue'
import meui from 'me-ui';
import antd from 'ant-design-vue';
import router from './router';
import flex from './plugins/flex';
import { initStore , pinia } from './stores';
import '@/styles/index.less';
import '@/mock';
import { useConfigStore } from './stores/configs/config';
import communication from '@/services/communication';
import i18n from '@/locales';
function initApp () {
  const app = createApp(App);
  app.use(pinia);
  initStore(pinia);
  const configStore = useConfigStore();
  configStore.initConfig();
  app.use(flex).use(i18n).use(communication).use(router).use(antd).use(meui).mount('#app');
}
initApp();